// 响应接口数据
exports.setJson = (res, code, message, data, others = {}) => {
  res.json({
    code,
    message,
    data,
    ...others
  })
}
// 去除空参数
exports.deleteEmpty = (data) => {
  if(!data) return ({})
  Object.keys(data).forEach(item=>{
    if(!data[item]) delete data[item]
  })
  return data
}